<?
//package junit.runner;

/**
 * An implementation of a TestCollector that considers
 * a class to be a test class when it contains the
 * pattern "Test" in its name
 * @see TestCollector
 */
class SimpleTestCollector //extends ClassPathTestCollector 
{	
	public function __construct() 
	{
	}
	
	protected function isTestClass( $classFileName ) 
	{
		return 
			$classFileName->endsWith(".class") && 
			$classFileName->indexOf('$') < 0 &&
			$classFileName->indexOf("Test") > 0;
	}
}
?>